package net.zhengxinyun.unifyApp.service.AppVersion;

import net.zhengxinyun.unifyApp.entity.VersionEntity;
import net.zhengxinyun.unifyApp.mapper.AppVersion.VersionEntityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VersionServiceimpl implements  VersionService {

    @Autowired
    private VersionEntityMapper mapper;

    @Override
    public VersionEntity getVsersion(String version) {
        return mapper.getVsersion(version);
    }

    @Override
    public List<VersionEntity> getAllVersion() {
        return mapper.allVersions();
    }
}
